package robots;

import maze.Coordinate;
import maze.Location;

public abstract class Robot {
	
	//The coordinate of the location where this Robot =thinks= it is
	Coordinate co;

	/**
	 * Initializes a new Robot on coordinate 0,0
	 */
	public Robot(){
		setCoordinate(new Coordinate(0, 0));
	}
	
	/**
	 * Initializes a new Robot on a given coordinate
	 */
	public Robot(Coordinate co){
		setCoordinate(co);
	}
	
	public Coordinate getCoordinate() {
		return co;
	}

	public void setCoordinate(Coordinate co) {
		this.co = co;
	}
	
	public static Location coordinateToLocation(Coordinate co){
		return new Location(co.getX()*40+20, co.getY()*40+20);
	}
}
